/**
 * @author dan.qin
 * @time 2023-10-15 21 PM
 * @description 定义路由和实现路由拦截
 */
import { createRouter,createWebHistory,Router } from 'vue-router';
import routes from './routes';
import interceptor from './interceptor';


const router:Router = createRouter({
    history: createWebHistory(),
    routes: routes
})

/** 使用路由拦截 */
router.beforeEach(interceptor)
/** 导出路由 */
export default router;